import { defineAsyncComponent } from "vue";

export const formItemList = {
  // 文本类 defineComponent
  "el-form-text": defineAsyncComponent(
    () => import("@/components/form/formItem/InputText.vue")
  ),
  // 密码文本
  "el-form-password": defineAsyncComponent(
    () => import("@/components/form/formItem/InputPassword.vue")
  ),
  // 文本域
  "el-form-area-text": defineAsyncComponent(
    () => import("@/components/form/formItem/InputArea.vue")
  ),
  // 日期选择器
  "el-form-picker-date": defineAsyncComponent(
    () => import("@/components/form/formItem/PickerDate.vue")
  ),
  // 下拉选择器
  "el-form-select-dropdown": defineAsyncComponent(
    () => import("@/components/form/formItem/SelectDropDown.vue")
  ),
  // 远程搜索下拉选择器
  "el-form-select-dropdown-url": defineAsyncComponent(
    () => import("@/components/form/formItem/SelectDropDownUrl.vue")
  ),
  // 下拉输入框
  "el-form-input-select": defineAsyncComponent(
    () => import("@/components/form/formItem/InputSelect.vue")
  ),
  // 下拉输入框
  "el-form-input-auto-select": defineAsyncComponent(
    () => import("@/components/form/formItem/InputAutoSelect.vue")
  ),
  // 单选框
  "el-select-radio": defineAsyncComponent(
    () => import("@/components/form/formItem/SelectRadio.vue")
  ),
  // input远程搜索框
  "el-autocomplete-and-input": defineAsyncComponent(
    () => import("@/components/form/formItem/Autocomplete.vue")
  ),
};
